package com.zhb.cloud.mail.service;

import com.zhb.cloud.mail.model.Email;
/**
 * @ClassName: MailService
 * @author: zhb
 * @date: 2017年11月6日 下午9:06:11
 * @Description: 邮件发送
 *
 */
public interface MailService {
	/**
	 * @Description: 纯文本
	 * @param mail
	 * @throws Exception
	 */
	public void send(Email mail) throws Exception;

	/**
	 * @Description: 富文本
	 * @param mail
	 * @throws Exception
	 */
	public void sendHtml(Email mail) throws Exception;

	/**
	 * @Description: 模版发送 thymeleaf
	 * @param mail
	 * @throws Exception
	 */
	public void sendThymeleaf(Email mail) throws Exception;

}
